﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using System.Linq.Expressions;

namespace SaleManagement.Repository.Interfaces
{
    public interface IOrderRepository:IDisposable
    {
        IQueryable<Order> All { get; }
        IQueryable<Order> AllIncluding(params Expression<Func<Order, object>>[] includeProperties);
        Order Find(int id);
        void InsertOrUpdate(Order entity);
        void Delete(int id);
        void Save();
    }
}
